/*
 * @Author: LBH 1336709799@qq.com
 * @Date: 2024-11-17 16:09:49
 * @LastEditors: LBH 1336709799@qq.com
 * @LastEditTime: 2024-11-17 16:27:50
 * @FilePath: \找房子\src\main.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import App from './App.vue'

// Vue.config.productionTip = false
import MyHome from './components/MyHome.vue'
import MyUser from './components/MyUser.vue'
import MyDetail from "@/components/MyDetail.vue"
import MyFind from "@/components/MyFind.vue"
import MyZixun from "@/components/MyZixun.vue"
import VueRouter from "vue-router"
Vue.use(VueRouter)
const router = new VueRouter ({
  routes: [
    {path: '/', redirect:'/home'},
    {path: '/home', component: MyHome},
    {path: '/find', component: MyFind},
    {path: '/zixun', component: MyZixun},
    {path: '/user', component: MyUser},
    {path: '/detail', component: MyDetail},
    {path: '*', component: MyHome},
  ]
})
export default router
 
new Vue({
  render: h => h(App),
  router
}).$mount('#app')
